Skip to content

Expose constructor with inner aggregation dictionary #1206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2015
Merged

Expose constructor with inner aggregation dictionary #1206

merged 1 commit into from
Jan 22, 2015

Conversation

mausch
Copy link
Contributor

@mausch mausch commented Jan 20, 2015

When I want to test a function that converts aggregation results into something else I need to set the inner aggregations of a SingleBucket in order to set up the test data. This class however doesn't currently expose the constructors of its base classes so it's not possible.

@gmarz
Copy link
Contributor

gmarz commented Jan 20, 2015

Thanks @mausch. This LGTM, but we should probably do this for all of the other aggregation response types that inherit from AggregationsHelper as well, since they suffer from the same testability issue. Thoughts?

@mausch
Copy link
Contributor Author

mausch commented Jan 20, 2015

Sure, I only noticed it for this one because that's what I had to use in my test, but it should be same for other similar classes.

gmarz added a commit that referenced this pull request Jan 22, 2015
Expose constructor with inner aggregation dictionary
@gmarz gmarz merged commit 8658956 into elastic:develop Jan 22, 2015
gmarz added a commit that referenced this pull request Jan 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants